module.exports = app => {
    const seq = app.Sequelize;

    const shopredHistory = app.model.define('shopred_history', {
        id:{
            type:seq.INTEGER,
            autoIncrement:true,
            allowNull:false,
            primaryKey:true,
            unique:true
        },
        amount:{
            type:seq.INTEGER,
            allowNull:true
        },
        remark:{
            type:seq.STRING,
            allowNull:true
        },
        ip:{
            type:seq.STRING,
            allowNull:true
        },
        uploadImg:{
            type:seq.STRING,
            allowNull:true
        }
    },{
        timestamps:true,
        paranoid:true,
        underscored:false
    });

    shopredHistory.associate=function () {
    };


    return shopredHistory;
};